{php}
    if(Request()->action()=='information')
    { 
        $tabClass['user_data'] = 'active'; 
        $tabClass['user_rank'] = '';
        $tabClass['user_fans'] = ''; 
    }
    elseif(Request()->action()=='fans'||Request()->action()=='following')
    { 
        $tabClass['user_fans'] = 'active'; 
        $tabClass['user_data'] = ''; 
        $tabClass['user_rank'] = '';
    }
    elseif(Request()->action()=='rankverify'||Request()->action()=='rank'||Request()->action()=='rankverifyfailure'||Request()->action()=='rankverifywait')
    { 
        $tabClass['user_rank'] = 'active'; 
        $tabClass['user_data'] = '';
        $tabClass['user_fans'] = '';
    }
    else
    { 
        $tabClass[$type] = 'active'; 
        $tabClass['user_rank'] = ''; 
        $tabClass['user_data'] = '';
        $tabClass['user_fans'] = '';
    }

    //dump($tabClass);exit;
{/php}
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="pnav-box">
        <ul class="nav nav-secondary pnav-list">
            
            {volist name='appArr' id='vo'}
            {neq name='vo' value=''}
                <li class="{$tabClass[$key]}">
                    <a href="{:Url('appList',array('type'=>$key,'uid'=>$user_info['uid']))}"  class="{$tabClass[$key]}">    
                        {$vo.title}
                    </a>
                </li>
            {/neq}
            {/volist}

            <li class="{$tabClass.user_data}">
                <a href="{:Url('information',array('uid'=>$user_info['uid']))}" >{:lang('_INFORMATION_')}</a>
            </li>
            <li class="{$tabClass.user_rank}">
                <a href="{:Url('rank',array('uid'=>$user_info['uid']))}" >{:lang('_RANK_TITLE_')}</a>
            </li>
            <li class="{$tabClass.user_fans}">
                <a href="{:Url('following',array('uid'=>$user_info['uid']))}">{:lang('_FOLLOWERS_NO_SPACE_')}{:lang('_SLASH_')}{:lang('_FANS_')}</a>
            </li>
        </ul>
    </div>
    <!-- /.navbar-collapse -->
